﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_ManagerPages_viewThisDesign : System.Web.UI.Page
{
    int dId = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        StaffBUS staff = new StaffBUS();
        dId = Convert.ToInt32(Request.QueryString["dId"].ToString());
        Design d = new Design();
        d.Id = dId;
        Design d1=staff.searchDesign(d);
        imgIcon.ImageUrl = "~/Images/Design/" + d1.DesignImage;
        lblName.Text = d1.Name;
        lblPostDate.Text = d1.PostDate;
        lblDescription.Text = d1.Description;
        lblQuotation.Text = d1.Quotation;
        lblStudent.Text = d1.St.Username;
        ManagerBUS manager = new ManagerBUS();
        lblMark.Text = manager.getMarkDesign(dId).ToString();
    }
}